package com.zhao.utils;

import java.io.IOException;

public class TestRequest {
    public static void main(String[] args) {
        final String location = "116.39254,40.06882";
        final String url = "http://restapi.amap.com/v3/geocode/regeo" +
                "?output=json" +
                "&key=e90bf061b3e6eeaf6c8355a43fc1ac1e" +
                "&radius=150" +
                "&extensions=all" +
                "&location=" + location;
        String s = null;
        try {
            s = HttpUtils.get(url);
        } catch (IOException e) {
            e.printStackTrace();
        }
        System.out.println(s);
    }
}
